<template>
  <div>
    <van-search
      v-model="value"
      show-action
      label="地址"
      placeholder="大家都在搜'618人气销售王''"
      @search="onSearch"
    >
      <template #action>
        <div @click="onClickButton">搜索</div>
      </template>
    </van-search>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router";
const router = useRouter();

const onSearch = () => {
  router.push("/search");
};
</script>

<style lang="scss" scoped>
</style>